﻿@model Web.ViewModels.ProjectDescriptionModel

<div id="project_description_container" class="@(String.IsNullOrEmpty(Model.Description) ? "ownerOnly" : "")">
		
	<div class="editDescriptionText_field" id="descriptionContainer">
        <span class="editDescriptionText_field editDescriptionText_field0"> 
            @Model.Description
        </span>
        <span class="editDescriptionText_dummy0" @if(!String.IsNullOrEmpty(Model.Description))
                                        {
                                                @:style="display: none;"
                                        }>
            Щёлкните сюда, чтобы добавить описание
        </span>
        <br/>
        <div style="height:20px;">
		<a href="#" class="editButton_edit editButton" rel="editDescriptionText">Редактировать</a>
        </div>
    </div>
	@using (Html.BeginForm("ChangeDescription", "Project", FormMethod.Post, new { @class = "ajaxForm_noReload", @name = "editDescriptionText_form" }))
 {
		<input type="hidden" name="id" value="@(Model.id)"/>
		<div class="editionInput editDescriptionText_input">
			@Html.TextAreaFor(x => x.Description, new
									{
										@id = "editDescriptionText_input",
										@class = "editDescriptionText_input0",
										@placeholder = "Собираемся у метро Уральская. Одеться во что-нибудь, что не жалко испачкать"
									})
			@Html.ValidationMessageFor(x => x.Description)
		</div>

		<input type="submit" class="editButton_submit editionInput editDescriptionText_input" value="Сохранить" name="editDescriptionText" />
		<input type="reset" class="editButton_cancel editionInput editDescriptionText_input" value="Отмена" name="editDescriptionText" />
 }
</div>

